package com.zc.app.observer;

import org.junit.Test;

/**
 * Created by User on 2017/6/8.
 */
public class WeatherStation {

    /**
     * 观察者设计模式
     */
    @Test
    public void weatherTest(){
        WeatherData weatherData = new WeatherData();

        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);

        weatherData.setMeasurements(80, 65, 30.4f);
    }
}
